//
//  delegateRun.swift
//  swiftStudy
//
//  Created by unisedu on 16/4/1.
//  Copyright © 2016年 CaoFei. All rights reserved.
//

import UIKit

class delegateRun: NSObject {
    
    func show(){
        var mother = Mother(_sex:"女", _name:"红红")
        var mark = Person(_sex:"男", _name:"打工仔")
        //设置代理
        mother.delegate = mark
        //mother 开始寻找 她的小红
        mother.lookingforChild("小红")
        
        //换一个 寻找 小明
        mother.lookingforChild("小明")
    }
   
}
